package com.echo.neocommunity.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.HashMap;
import java.util.Map;
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Event {

    private String topic;

    private int userId;

    private int entityType;

    private int entityId;

    private int entityUserId;

    private Map<String,Object> data=new HashMap<>();

    public void setData(String data,Object object){
        this.data.put(data,object);
    }

}
